import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * Write a description of class Personaje here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Personaje extends Actor
{
    /**
     * Act - do whatever the Personaje wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public Personaje(int tipo)
    {
       GreenfootImage imagen;
       if(tipo==0)
       this.setImage("fspider.jpg");
       else if(tipo==1)
       this.setImage("firon.jpg");
       else if(tipo==2)
       this.setImage("fbatman.jpg");
        else if(tipo==3)
       this.setImage("fviuda.jpg");
        else if(tipo==4)
       this.setImage("fhawk.jpg");
        else if(tipo==5)
       this.setImage("fthor.jpg");
        else if(tipo==6)
       this.setImage("fhulk.jpg");
        imagen=this.getImage();
         this.setImage(imagen);
    }
   
    public void remueve()
    {
         getWorld().removeObject(this);  
    }
}
